package com.rjwh.dingdong.client.mvp.model.impl;

import com.aishua.lib.task.AsResult;
import com.rjwh.dingdong.client.mvp.BaseModel;
import com.rjwh.dingdong.client.mvp.BasePresenter;
import com.rjwh.dingdong.client.mvp.model.IMoreFeedBackModel;
import com.rjwh.dingdong.client.network.ApiRequest;
import com.rjwh.dingdong.client.network.HttpWebServiceCallBack;

/**
 * @author Kay
 * @ClassName MoreFeedBackModel
 * @Description
 * @date 2016-8-5
 * @history 2016-8-5 author: description:
 */
public class MoreFeedBackModel extends BaseModel implements IMoreFeedBackModel, HttpWebServiceCallBack {
    public MoreFeedBackModel(BasePresenter basePresenter) {
        super(basePresenter);
    }

    /**
     * 发送反馈
     *
     * @param content 反馈内容
     */
    @Override
    public void doLeaveMessage(String content) {
        ApiRequest.doLeaveMessage(content, this);
    }

    @Override
    public void onServerDataAcquired(int businessType, AsResult mAsResult, boolean isRefresh) {
        if (getBasePresenter() != null) {
            getBasePresenter().onServerDataAcquired(businessType, mAsResult, isRefresh);
        }
    }
}
